package com.qf.controller;

import com.qf.pojo.Order;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @RequestMapping("/{id}")
    public Order getOrderById(@PathVariable String id){
        Order order = new Order();
        order.setOrderId(id);

        order.setMoney(1000000d);

        return order;
    }

}
